<?php

namespace app\admin\validate;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule =   [
        'username' => 'require',
        'password' => 'require',
    ];

    protected $message = [
        'username.require' => '缺少参数username',
        'password.require' => '缺少参数password',
    ];

    protected $scene = [
        'login' => ['username', 'password'],
    ];
}